import App from './App'
import store from './store'
import Vue from 'vue'
// #ifdef H5
import './utils/init-leancloud.js'
// #endif

// #ifdef MP-WEIXIN
console.log('小程序sdk初始化');
require('./utils/leancloud-init-wx.js')
// #endif

// 引入全局TuniaoUI
import TuniaoUI from 'tuniao-ui'
Vue.use(TuniaoUI)

import NavCustom from './components/nav-custom'
Vue.component('nav-custom',NavCustom) //全局注册
import HomeTitle from './components/home-title'
Vue.component('home-title',HomeTitle) //全局注册
import CakeItem from './components/cake-item'
Vue.component('cake-item',CakeItem) //全局注册
import GoodSpec from './components/good-spec'
Vue.component('good-spec',GoodSpec) //全局注册

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App,
	store
})
app.$mount()
